package com.ambow.service.impl;

import java.util.List;

import com.ambow.dao.MessageDao;
import com.ambow.dao.impl.MessageDaoImpl;
import com.ambow.entity.Message;
import com.ambow.service.MessageService;
import com.ambow.utils.PageResults;

public class MessageServiceImpl implements MessageService{
      MessageDao messageDao=new MessageDaoImpl();
      
	@Override
	public boolean saveMessage(Message message) {
		return messageDao.saveMessage(message);
	}

	@Override
	public List<Message> selectAllMessage() {
		return messageDao.selectAllMessage();
	}

	@Override
	public PageResults<Message> getPageByFetchedHql(String hql, String countHql, Integer pageNo, Integer pageSize) {
		return messageDao.getPageByFetchedHql(hql,countHql,pageNo,pageSize);
	}

	@Override
	public Message queryById(Class c, int id) {
		return messageDao.queryById(c,id);
		
		
	}
	

}
